package com.hytc.mymall.base;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;

import com.hytc.mymall.bean.HomeInfoBean;


/**
 * Created by Joker on 2016/12/1.
 */
public class BasePager
{
    public Context context;
    public HomeInfoBean.HomeInfo homeinfo;
    public int layoutRes;
    public View rootView;
    public String tag;

    public BasePager(final Context context, final int layoutRes, final HomeInfoBean.HomeInfo homeinfo) {
        this.context = context;
        this.layoutRes = layoutRes;
        this.homeinfo = homeinfo;
        this.initView();
    }

    public BasePager(final Context context, final int layoutRes, final HomeInfoBean.HomeInfo homeinfo, final String tag) {
        this.context = context;
        this.layoutRes = layoutRes;
        this.homeinfo = homeinfo;
        this.tag = tag;
        this.initView();
    }

    public void initData() {
    }

    public void initView() {
        this.rootView = View.inflate(this.context, this.layoutRes, (ViewGroup)null);
    }
}